package com.lqian.exception;
import org.springframework.http.HttpStatus;

import  static org.springframework.http.HttpStatus.INTERNAL_SERVER_ERROR;


/**
 * @author：Melody_LQ
 * @time：2022/8/19 5:30 下午
 */
public class RetryOnFailureException extends RuntimeException{
    private Integer status = INTERNAL_SERVER_ERROR.value();

    public RetryOnFailureException( String msg) {
        super(msg);
    }

    public RetryOnFailureException(HttpStatus status, String msg) {
        super(msg);
        this.status = status.value();
    }

}
